<?php

namespace App\Models\Base;

use Illuminate\Database\Eloquent\Model;

class StatResource extends Model
{
    protected $guarded = [];

    //获取事件名
    public function getEvent()
    {
        return $this->hasOne(StatEvent::class, 'event_id', 'change_type');
    }
}
